export function validateAndShowTip(callback, list, options = {}) {
  const { tips = '请选择数据再进行操作', isShowErrorTips = true } = options

  if (toValue(list)?.length) {
    return callback()
  } else {
    isShowErrorTips && ElMessage.warning(tips)
  }
}
